#include "main.h"
#include "ClassA.h"
#include "ClassB.h"

// ----------------------------------------------------------
// Initialize Host Data
// ----------------------------------------------------------
void initializeHost(void)
{
	width = 1024;
	randomMassive = NULL;

	randomMassive = (float*) malloc (width * sizeof(float));
	if(randomMassive == NULL)
	{
		printf("Error: Failed to allocate randomMassive memory on host\n");
		return; 
	}
}

// ----------------------------------------------------------
// Clean all data
// ----------------------------------------------------------
void runMP(void)
{
}

// ----------------------------------------------------------
// Clean all data
// ----------------------------------------------------------
void cleanupHost(void)
{
	if(randomMassive != NULL)
	{
		free(randomMassive);
		randomMassive = NULL;
	}
}

void main(void)
{
	//cout << "Start OpenMP" << endl;
	//initializeHost();
	//cleanupHost();
	//cout << "End OpenMP" << endl;
	ClassA * classA = new ClassA();
	ClassB * classB = new ClassB();

	cout << classA->getBaseAFieldOne() << endl;
	cout << classB->getBaseAFieldOne() << endl;

	_getch();
}
